package domain;

import domain.exceptions.CannotFlagWallSquareException;
import domain.exceptions.CannotPlaceAgentHereException;

/**
 *
 * @author shaigi
 */
public class SquareIce extends Square{

    public SquareIce(int row, int column){
        setAgent(null);
        setRow(row);
        setColumn(column);
        try {
            setFlag(null);
        } catch (CannotFlagWallSquareException ex) {
            System.out.println(ex.getMessage());
        }
    }
    
    @Override
    public String toString(){
        return "Ice Square " + toStringLocation();
    }

    @Override
    public void placeAgent(Agent agent) throws CannotPlaceAgentHereException {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
}

